package com.example.livedata.service;


import android.arch.lifecycle.LiveData;

import com.example.livedata.api.ApiResponse;
import com.example.livedata.entity.UserInfo;

import retrofit2.http.GET;
import retrofit2.http.Query;

//请求服务器
public interface UserService {

    @GET("search/repositories")
    LiveData<ApiResponse<UserInfo>> getUser(@Query("q") String query);

}
